import request from "@/api/request";
import { apiClusterJava } from "@/api/root";

// 查询院系匹配率
export const getProfessionMatchRate = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/collegeProfession/getProfessionMatchRate",
    data
  );
};

// 获取所有专业
export const getAllProfession = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/collegeProfession/getAllProfession",
    data
  );
};
// 查询院系匹配率
export const getAllProfessionMatchRate = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/collegeProfession/getAllProfessionMatchRate",
    data
  );
};
// 获取单个职业组合统计数据
export const getOneSubjectCombination = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/positionSubjectStat/oneSubjectCombination",
    data
  );
};
// 技能/知识/素质-六边形图
export const getMatchDetail = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/layerData/matchDetail",
    data
  );
};
// 科目组合匹配热门职业
export const hotCombinationSubjectPosition = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/positionSubjectStat/hotCombinationSubjectPosition",
    data
  );
};
// 获取所有校园
export const getCollegeList = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/collegeProfession/getCollegeList",
    data
  );
};
// 获取二级专业及子专业详情
export const getProfessionSonList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/collegeProfession/getProfessionSonList',
    data
  );
};
// 获取院校信息及专业列表
export const getCollegeInfoAndList = (data) => {
  return request.webservice(
    'cr',
    `${apiClusterJava}/api-career/open/index`,
    '/collegeProfession/getCollegeInfoAndList',
    data
  );
};
// 获取专业匹配详情院校数据
export const getCollegeProfessionList = (data) => {
  return request.webservice(
    "cr",
    `${apiClusterJava}/api-career/open/index`,
    "/collegeProfession/getCollegeProfessionList",
    data
  );
};
